package com.info.consumer.web;

import com.info.consumer.feign.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by pengshuo on 2018/1/7 9:52
 * Description:
 * Modified By:
 * Version:
 *
 * @author pengshuo
 */
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping(value = {"hello"})
    public String hello(){
        return helloService.hello();
    }
}
